<template>
	<div class="shopinfo">
        
        <popup v-model="show7" height="100%" is-transparent>
            <div class="popContent">
                <img src="../assets/img/icon_success@2x.png" alt="">
                <group>
                    <cell title="赠送成功，等待好友领取" value=""></cell>
                    <cell title="(若好友24小时未领取，该卡将退回至您的卡包)" value="" class="giveTips"></cell>
                </group>
                <div>
                <x-button plain type="primary" class="custom-primary-red" @click.native="givesuc">完成</x-button>
                </div>
            </div>
        </popup>
	</div>
</template>
<script>
	import { Group,Popup,Cell, XInput,XButton,Card, CellFormPreview} from 'vux'
	export default {
		data (){
			return {
			  show7: true
			}
		},
		components: {
            Group,
            Popup,
		   Cell,
		   XInput,
		XButton ,
			Card,
			CellFormPreview 
		},
		methods: {
            givesuc (){
                this.$router.push('/MyCardPack')
            },
			saveData: function () {

	let xx = 	{
					"sessionId":"ed852194-ceb9-4316-b3cb-ef972f96d233","cardProductInfo":{"state":"normal","name":"card1","price":"1200","quantity":"3000","expireDate":"360","denomination":"150000","cardType":"normal"}
	}
	this.$http.post(this.$store.state.rests.addCard.url,xx).then(res => {
				console.log(res,"1111")
				}).then(err =>{
					console.error(err);
				})
			}
			
		}
	}
	</script>
<style>

</style>